package com.xiyi.shouxin.view.pojo;

import com.xiyi.shouxin.entity.user.Video;

import lombok.Getter;

@Getter
public class VideoView extends Video {

    public VideoView(Video video) {
        if (video != null) {
            this.setId(video.getId());
            this.setName(video.getName());
            this.setThumb(video.getThumb());
            this.setUrl(video.getUrl());
            this.setVideoId(video.getVideoId());
            this.setStatus(video.getStatus());
        }
    }
}
